﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="contactentry.aspx.vb" Inherits="contactentry" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1>
        Contact Management</h1>
    <hr />
    <asp:Label ID="lblContactUID" runat="server" Visible="false" />
    <asp:Label ID="lblUpContactUID" runat="server" Visible="false" />
    <asp:Label ID="lblStaffUID" runat="server" Visible="false" />
 <div  runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">
    
        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
        </div>
<div  runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">
    
        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />
    
</div>
    <p><%--Description of the page--%></p>
    <div class="form-container" id="divContentGeneral">
        <table width="100%"><tr><td class="General-info-title" style="width:150px;"><h3>General Information</h3></td><td><div class="General-info-title-line"></div></td></tr></table>
        <table class="form-table" cellpadding="5" cellspacing="5">
            <tr>
                <th scope="row" style="width: 250px">
                    Name :
                </th>
                <td>
                    <asp:TextBox ID="txtName" runat="server" Width="300px" />
                    <span style="color: Red">*<asp:RequiredFieldValidator ID="rfvtxtName" ControlToValidate="txtName"
                        SetFocusOnError="true" runat="server" ValidationGroup="Contactentry" ErrorMessage="<br />Please enter a name"
                        ForeColor="Red" Display="Dynamic" /></span>
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 200px">
                    Nick Name :
                </th>
                <td>
                    <asp:TextBox ID="txtNickName" runat="server" Width="300px" />
                    <span style="color: Red">*
                        <asp:RequiredFieldValidator ID="rfvtxtNickName" ControlToValidate="txtNickName" SetFocusOnError="true"
                            runat="server" ValidationGroup="Contactentry" ErrorMessage="<br />Please enter a nick name"
                            ForeColor="Red" Display="Dynamic" />
                    </span>
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 200px">
                    Prospective Type :
                </th>
                <td>
                    <asp:DropDownList ID="ddlProspectiveType" runat="server">
                        <asp:ListItem Text="-SELECT-" Value="0" Selected="True" />
                        <asp:ListItem Text="Purchaser" Value="1" />
                        <asp:ListItem Text="Tenant" Value="2" />
                        <asp:ListItem Text="Vendor" Value="3" />
                        <asp:ListItem Text="Landlord" Value="4" />
                        <asp:ListItem Text="Developer" Value="5" />
                        <asp:ListItem Text="Investor" Value="6" />
                        <asp:ListItem Text="Banker" Value="7" />
                        <asp:ListItem Text="Others" Value="8" />
                    </asp:DropDownList>
                    <span style="color: Red">*<asp:RequiredFieldValidator ID="rfvddlProspectiveType" ControlToValidate="ddlProspectiveType"
                        SetFocusOnError="true" runat="server" ValidationGroup="Contactentry" ErrorMessage="<br />Please select a prospective type"
                        ForeColor="Red" Display="Dynamic" />
                    </span>
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 200px">
                    Company Name
                </th>
                <td>
                    <asp:TextBox ID="txtCompanyName" runat="server" Width="300px" />
                </td>
            </tr>
             <tr>
                <th scope="row" style="width: 200px">
                    Department
                </th>
                <td>
                    <asp:TextBox ID="txtDepartment" runat="server" Width="300px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 200px">
                    Job Title
                </th>
                <td>
                    <asp:TextBox ID="txtJobTitle" runat="server" Width="300px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 200px">
                    Remark
                </th>
                <td>
                    <asp:TextBox ID="txtRemark" runat="server" Width="300px" TextMode="MultiLine" />
                </td>
            </tr>
        </table>
        <br />
    <div class="form-container" id="divContentContact">
        <table style="width:100%;" >
                            <tr><td style="width:150px;"><div class="General-info-title"><h3>Contact Informations </h3></div></td>
                            <td><div class="General-info-title-line"></div></td>
                         </tr></table>
        <table cellpadding="5" cellspacing="5" class="form-table">
            <tr>
                <th scope="row" style="width: 250px">
                    Phone :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtPhone" runat="server" Width="300px" onkeypress="return isNumberKeyOnly(event)"
                        onpaste="return false;" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 150px">
                    Mobile :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtMobile" runat="server" Width="300px" onkeypress="return isNumberKeyOnly(event)"
                        onpaste="return false;" /><span style="color: Red">*</span>
                    <asp:RequiredFieldValidator ID="rfvtxtMobile" ControlToValidate="txtMobile" SetFocusOnError="true"
                        runat="server" ValidationGroup="Contactentry" ErrorMessage="<br />Please enter a mobile"
                        ForeColor="Red" Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 150px">
                    Fax :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtFax" runat="server" Width="300px" onkeypress="return isNumberKeyOnly(event)"
                        onpaste="return false;" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 150px">
                    Email :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtEmail" runat="server" Width="300px" /><span style="color: Red">*</span>
                    <asp:RequiredFieldValidator ID="rfvEmail" ControlToValidate="txtEmail" SetFocusOnError="true"
                        runat="server" ValidationGroup="Contactentry" ErrorMessage="<br />Please enter an email"
                        ForeColor="Red" Display="Dynamic" />
                    <asp:RegularExpressionValidator ID="revEmail" ControlToValidate="txtEmail" SetFocusOnError="true"
                        runat="server" ErrorMessage="<br/>You must enter a valid email address" ForeColor="Red"
                        ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="Contactentry"
                        Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 150px">
                    Address :
                </th>
                <td class="style1">
                    <asp:TextBox ID="txtAddress" runat="server" Width="300px" TextMode="MultiLine" Rows="4" onkeypress="return isNumberKeyOnly(event)"
                        onpaste="return false;" />
                </td>
            </tr>
        </table>
        <br />
    <div class="Confirmation-Container">
        <div class="Confirmation-Container">
        <table width="100%" style="margin-left:0px;">
                        <tr>
                            <td><div class="General-info-title-line"></div></td>
                            <td style="width:160px;"> 
                                &nbsp;<asp:Button ID="btnBack" runat="server" Text="Back"  CssClass="search-btn" Width="60px"  />
                                &nbsp;<asp:Button ID="BtnSave" runat="server" Text="Save" ValidationGroup="Contactentry" CssClass="search-btn" Width="80px"  />                            
                                <cc1:ConfirmButtonExtender ID="CBEBack" runat="server" TargetControlID="btnBack" />
                            </td>
                            <td style="width: 60px"><div class="General-info-title-line"></div></td>
                        </tr>
                    </table>
                    <div class=" form-entry-title" style="line-height:15px; margin-bottom:0px; margin-top:15px;"><span style="color: Red; font-size:10px;">*Required fields</span></div>
    </div>
    </div> 
    <asp:Button ID="btnExistMobile" runat="server" OnClientClick="return confirm('Mobile Exist! Do you want to update the contact information');" style="display:none" />
    <asp:Literal ID="ltExistMobile" runat="server" EnableViewState="true" />
    <asp:Button ID="btnExistCancel" runat="server" style="display:none" />
    <%--<cc1:ConfirmButtonExtender ID="cbeUpdateContact" runat="server" TargetControlID="btnExistMobile" ConfirmText="Mobile Exist! Do you want to update contact's information to this mobile?" OnClientCancel="btnExistCancel" />--%>
    </div>
    </div>
</asp:Content>
